<%@page import="edu.uit.se.laps.web.model.TaiKhoan"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<!-- pageEncoding="UTF-8"%> -->
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ page
	import="edu.uit.se.laps.web.*,edu.uit.se.laps.web.controller.*, java.net.*,java.text.*,java.util.*"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
body,input {
	font-family: Calibri, Arial;
}

input {
	
}

table#contact {
	border-collapse: collapse;
}

th {
	height: 40px;
	background-color: #ffee55;
}

.addsp{
	padding-top: 50px;
	padding-bottom: 100px;
}
.khungaddSP{
	
	width: 100%;
	background: #FFFFEB;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	-ms-border-radius: 10px;
	-o-border-radius: 10px;
	border-radius: 10px;
	box-shadow: 0px 0px 25px #808076;
}
h1{
	color: red;
	padding-top: 20px;
	margin-left: 30px;
}

ul{
	list-style-type: none;
}

textarea{
	max-width: 500px;
}

ul a{
	width: 120px;
	display: inline-block;
}

.taotk{
	background: red;
	height: 40px;
	color: white;
	font-size: 18px;
	cursor: pointer;
	border: none;
	margin-left: 20px;
}

.taotk:hover{
	background: #8F2400;
}
</style>
<title>myLife - Thêm thành viên</title>

<s:head />
<!-- the s:head de thong bao loi validation -->
</head>
<body>
	<tiles:insertTemplate template="TemAdmin.jsp">
	<tiles:putAttribute name="adminFocus">
	<div class="addsp" align="left">
	<div class="khungaddSP">
	<%
		TaiKhoanSession tkSession = (TaiKhoanSession) session.getAttribute("TaiKhoanSession");
		if (tkSession == null) {
			tkSession = new TaiKhoanSession();
			session.setAttribute("TaiKhoanSession", tkSession);
		}
		TaiKhoan tk = tkSession.getTk();
	%>

	<h1>Tạo tài khoản khách hàng</h1>
	
	<div style="color: red">${message}</div>
	<s:form action="addUser" method="post">
		<ul>
			<li><a>Email<label style="color:red">*</label></a><input type="email" name="email" size="30" required="on"/></li>
			<li><a>Password<label style="color:red">*</label></a><input type="password" name="password" size="30" required="on"/></li>
			<li><a>Họ Tên<label style="color:red">*</label></a><input type="text" name="hoTen" size="50" required="on"/></li>
			
			<li><a>Giới Tính<label style="color:red">*</label></a></label> 
			<select name="gioiTinh">
			<option value=0>Nam</option>
			<option value=1>Nữ</option>
			</select>
			</li>
			<li><a>Ngày Sinh<label style="color:red">*</label></a><input type="date" name="ngaySinh" required="on"></li>
			<li><a>Điện Thoại<label style="color:red">*</label></a><input type="text" name="dienThoai" size="11" required="on"/></li>
			<li><a>Địa Chỉ<label style="color:red">*</label></a><textarea name="diaChi" required="on"></textarea></li>
		</ul>
		<p>
			<input class="taotk" type="submit" value="Tạo tài khoản" />
		</p>
	</s:form>

<%-- 	<s:actionerror /> --%>
<%-- 	<s:form action="addUser" method="post"> --%>

<%-- 		<s:textfield name="taiKhoan.email" label="Email" /> --%>
<%-- 		<s:textfield name="taiKhoan.password" label="Mật Khẩu" /> --%>
<%-- 		<s:textfield name="taiKhoan.hoTen" label="Họ Tên" /> --%>

<%-- 		<s:textfield name="taiKhoan.gioiTinh" label="Giới Tính" /> --%>
<%-- 		<s:textfield name="taiKhoan.dienThoai" label="Điện Thoại" /> --%>
<%-- 		<s:textfield name="taiKhoan.diaChi" label="Địa Chỉ" /> --%>

<%-- 		<s:submit value="Tạo Tài Khoản" align="center" /> --%>
<%-- 		<s:reset value="Reset" /> --%>
<%-- 	</s:form> --%>
	
	
	
	</div>
	</div>
	</tiles:putAttribute>
	</tiles:insertTemplate>

</body>
</html>